Skip to content

feat: add spinloop up to start a directory's engine - #167

Merged
outofcoffee merged 1 commit into
mainfrom
up-down-aliases
Sep 6, 2026
Merged

feat: add spinloop up to start a directory's engine#167
outofcoffee merged 1 commit into
mainfrom
up-down-aliases

Conversation

@outofcoffee

Copy link
Copy Markdown
Collaborator

Adds spinloop up: one word to start the engine a directory holds — the fleet a fleet.yaml names, or the local server a Spinloop describes.

Summary

  • New top-level spinloop up (cmd/spinloop/up.go). In a directory with a fleet.yaml it runs the fleet start path — a bare up starts every node, up <node> the named ones; elsewhere it runs serve's own body, so resolution, output and errors are serve's.
  • A fleet.yaml wins over a Spinloop in the same directory. Positionals only — an unknown flag is refused, not forwarded.
  • Tab completion: the fleet's node names in a fleet directory, the Spinloop slot elsewhere, silent on failure.
  • User docs: new docs/commands/up.md, the command-table row, and cross-references from the README and the serve, fleet, completion, alias, spinloop-file and getting-started pages.
  • The up-command openspec change is implemented, archived, and synced to openspec/specs/up-command/spec.md.

Implementation details

  • The branches reuse runFleetDrive/fleetStartCall and runServe rather than re-implementing either, so up and the commands it wraps cannot disagree. A bare fleet start refuses to run without a target, which is why a bare up is the --all form.
  • The completion slot is the only CWD-dependent one: node names where ./fleet.yaml parses, the Spinloop slot elsewhere, nothing where the fleet file is present but unreadable — __complete never errors.

A fleet.yaml in the working directory sends up to the fleet start path — a bare up starts every node, up <node> the named ones; anywhere else it runs serve's own resolution, output, and errors. Lands with docs, the up-command spec, and the archived openspec change.
@outofcoffee outofcoffee added enhancement New feature or request go Pull requests that update go code labels Sep 6, 2026
@outofcoffee
outofcoffee merged commit 0f1ca8f into main Sep 6, 2026
2 checks passed
@outofcoffee
outofcoffee deleted the up-down-aliases branch September 6, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant